package cn.aaalei.mapper;

import cn.aaalei.pojo.*;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ActionInfoMapper {

    int addBindInfo(BindDeviceInfo bindDeviceInfo);

    int updateBindInfo(BindDeviceInfo bindDeviceInfo);

    BindDeviceInfo findBindInfoByStudentNo(String studentNo);

    BindDeviceInfo findBindInfoByUserId(String userId);

    int addProfileInfo(LoginProfileInfo loginProfileInfo);

    int updateProfileInfo(LoginProfileInfo loginProfileInfo);

    LoginProfileInfo findProfileInfoByStudentNo(String studentNo);

    LoginProfileInfo findProfileInfoByUserId(String userId);

    int addModifySignInfo(SignLogInfo signLogInfo);

    int addEvaluateSignInfo(SignLogInfo signLogInfo);

    int addAutoSignInfo(SignLogInfo signLogInfo);

    Integer findUserExist(String username);

    Integer findWisdomExist(String username);

    int addUser(AdminInfo adminInfo);

    int updateUserScore(String username,int score);

    Integer findUserScore(String username);

    int addUnbindSignInfo(SignLogInfo signLogInfo);

    String findUsernameByStudentNo(String studentNo);

    KeyInfo findKey(String key);

    Integer updateKey(KeyInfo keyInfo);

    Integer addDailySignLog(DailySignLogInfo dailySignLogInfo);

    Integer updateDailySignByUsername(UserInfo userInfo);

    UserInfo checkDailySignExistByUsername(String username);

    Integer addRecommendLog(RecommendLog recommendLog);
}
